﻿@{
    var SiteID = Query.GetLong("SiteID");
    var ebook = Query.GetLong("eb").ToString();
    var siteService = Fn.GetService<SiteService>();
    var site = siteService.GetSite(SiteID);
    if (site == null)
    {
        @("电子书未生成!")
        return;
    }
    var path = Adp.Env.ServerRoot.Combine(@"wwwroot", site.GetBackUrl(), "ebook/data", ebook.ToString(), "mobile");
    if (!System.IO.Directory.Exists(path))
    {
        @("电子书未生成!")
        return;
    }
    var totalPageCount = System.IO.Directory.GetFiles(path).Count();

    var basePath = Adp.Env.TcmBaseURL.Combine("/Server/Master/ebook/");
    var largePath = site.GetBackUrl().Combine("ebook/data", ebook, "mobile");
    var thumbPath = site.GetBackUrl().Combine("ebook/data", ebook, "thumb");
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <base href="@basePath" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">

    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="monitor-signature" content="monitor:player:html5">
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">

    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="generator" content="" />
    <link rel="image_src" href="../files/shot.jpg">
    <meta name="og:image" content="../files/shot.jpg">
    <meta property="og:image" content="../files/shot.jpg">
    <meta property="og:title" content="" />
    <meta property="og:type" content="article" />
    <meta property="og:url" content="" />
    <meta property="og:image" content="" />
    <meta property="og:description" content="" />
    <meta itemprop="name" content="">
    <meta itemprop="description" content="">
    <meta itemprop="image" content="">
    <title></title>
    <script>
        window.basePath = '@(basePath)/';
        window.largePath = '@(largePath)/';
        window.thumbPath = '@(thumbPath)/';
        window.totalPageCount = @(totalPageCount);
    </script>
    <link rel="stylesheet" href="./style/style.css" />
    <link rel="stylesheet" href="./style/player.css" />
    <link rel="stylesheet" href="./style/phoneTemplate.css" />
    <script type="text/javascript" src="./javascript/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="./javascript/config.js?aa"></script>
    <script type="text/javascript" src="./javascript/search_config.js"></script>
    <script type="text/javascript" src="./javascript/bookmark_config.js"></script>
    <script type="text/javascript" src="./javascript/main.js"></script>
    <link rel="stylesheet" href="./style/template.css" />

    <script type="text/javascript">
        var sendvisitinfo = function (type, page) { };
        $(document).ready(function () {
            sendvisitinfo = function () { };
        });
        var title = "{index.title2}",
            desc = "{meta.description2}",
            link = "",
            imgUrl = "";
    </script>
</head>
<body>
    <script type="text/javascript" src="./javascript/LoadingJS.js"></script>
</body>
</html>
